package com.gzhu.knowledgeAdmin.service.impl;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gzhu.knowledgeAdmin.dao.TRwmxTMapper;
import com.gzhu.knowledgeAdmin.entity.TRwmxT;
import com.gzhu.knowledgeAdmin.service.TRwmxTService;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
@Service
public class TRwmxTServiceImpl extends ServiceImpl<TRwmxTMapper, TRwmxT> implements TRwmxTService {


    @Resource
    private TRwmxTMapper tRwmxTMapper;

    @Override
    public List<TRwmxT> findById(Long fRwid) {
        List<TRwmxT> tRwmxT = tRwmxTMapper.selectById(fRwid);
        return tRwmxT;
    }

    @Override
    public Integer updateDetail(TRwmxT tRwmxT) {
        return tRwmxTMapper.updateDetail(tRwmxT);
    }

    @Override
    public Integer insertDetail(TRwmxT tRwmxT) {
        return tRwmxTMapper.insertDetail(tRwmxT);
    }

    @Override
    public void saveAll(List<TRwmxT> dataList) {
        tRwmxTMapper.insertBatch(dataList);
    }

    @Override
    public List<TRwmxT> chonghu(Long fRwid) {
        List<TRwmxT> tRwmxT = tRwmxTMapper.chonghu(fRwid);
        return tRwmxT;
    }

    @Override
    public List<TRwmxT> findAllWithRwmc() {
        return tRwmxTMapper.selectAll();
    }

}
